<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>领队风采_<?= $web_titles ?></title>
<meta name="Keywords" content="领队风采,<?= $web_keywords ?>" />
<meta name="Description" content="<?= $web_description ?>" />
<link rel="stylesheet" href="css/common.css"/>
<link rel="stylesheet" href="css/activity.css"/>
<script type="text/javascript" src="js/baidutongji.js"></script>
<script type="text/javascript" src="js/laydate/laydate.js"></script>
</head>
<body>
    <!--top-bar begin-->
	<? include("_include.top.topbar.php") ?>
    <!--top-bar end-->
    <!--header begin-->
	<? include("_include.top.navbar.php") ?>
    <!--header end-->
    <div class="f-item-box np">
        <div class="content">
            <div class="bd-content">
                <div class="con-pane on">
                    <div class="hd-box">
                        <div class="hd-box-l">
                            <div class="hd-box-item">
                                <div class="title">
                                    <h3>领队风采</h3>
                                </div>
                                <div class="leader-list leader-list2">
                                    <div class="bd">
                                        <ul>
									<?php
										$user_sql = "select * from kboy_user where user_leader=1 order by uid desc limit 10";
										$user_rows = mysql_query($user_sql);
										while($user_rs = mysql_fetch_array($user_rows)){
									?>
                                            <li>
                                                <a href="forum_news.php?uid=<?=$user_rs['uid']?>" target="_blank">
                                                    <div class="leader-intro">
                                                        <div class="pic"><img src="<?=$user_rs['user_face']?>" width="130" height="130" alt=""></div>
                                                        <div class="info">
                                                            <p class="p-name"><?=getUserNickName($user_rs['uid'])?></p>
                                                            <p>性别：<?php
															 if($user_rs['user_sex'] == 1){
															 	echo "男";
															 }elseif($user_rs['user_sex'] == 0){
															 	echo "女";
															 }else{
															 	echo "保密";
															 }
															 ?></p>
                                                            <p>好评率：100%</p>
                                                            <p>带队次数：<?=$user_rs['user_activetime']?>人次</p>
                                                        </div>
                                                    </div>
                                                </a>
                                            </li>
									<?php
										}
									?>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="hd-box-item">
                                <div class="title">
                                    <h3>活动报道</h3>
                                    <a href="active.php" class="more">更多&gt;&gt;</a>
                                </div>
                                <div class="show-news-list">
								<?php
									$news_sql = "select * from kboy_forum_active order by active_top desc,active_order desc, id desc limit 12";
									$news_rows = mysql_query($news_sql);
									while($news_rs = mysql_fetch_array($news_rows)){
								?>
                                    <dl class="news-list-item">
                                    <dt><a href="activeview.php?newsid=<?=$news_rs['id']?>" target="_blank"><img src="<?=$news_rs['active_pic']?>" width="90" height="61" alt=""/></a></dt>
                                    <dd>
                                        <div class="news-inner-title"><a href="activeview.php?newsid=<?=$news_rs['id']?>" target="_blank"><?=$news_rs['active_title']?></a></div>
                                        <p class="news-tips"><span>召集人：<?=getUserNickName($news_rs['uid'])?></span><span>活动时间：<?=date('Y-m-d',strtotime($news_rs['active_start_time']))?></span></p>
                                    </dd>
                                </dl>
									<?php
									}
								?>
                                </div>
                            </div>
                            <div class="hd-box-item">
                                <div class="title">
                                    <h3>活动照片</h3>
                                </div>
                                <div class="hd-photo-show">
                                    <ul class="bigImg">
									<?php
									$news_sql = "select * from kboy_piclink where news_bigclass = 138  order by id desc limit 12";
									$news_rows = mysql_query($news_sql);
									while($news_rs = mysql_fetch_array($news_rows)){
								?>
									<li>
										<img src="<?=$news_rs['news_pic'];?>">
									</li>
									<?php
									}
									?>
                                    </ul>
                                    <div class="smallScroll">
                                        <a class="sPrev" href="javascript:void(0)"></a>
                                        <div class="smallImg">
                                            <ul>
											<?php
												$news_sql = "select * from kboy_piclink where news_bigclass = 138  order by id desc limit 12";
												$news_rows = mysql_query($news_sql);
												while($news_rs = mysql_fetch_array($news_rows)){
											?>
                                                <li style="float: left; width: 62px;"><a><img src="<?=$news_rs['news_pic'];?>"></a></li>
												<?php
												}
												?>
                                            </ul>
                                        </div>
                                        <a class="sNext nextStop" href="javascript:void(0)"></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="hd-box-r">
                            <div class="hd-tips">
                                <div class="title"><h3>最新会员</h3></div>
                                <ul class="club">
								<?php
									$order_sql = "select * from kboy_user  where 1 order by uid desc limit 6 ";
									$order_rows = mysql_query($order_sql);
									$order_nums = mysql_num_rows($order_rows); 
									while($order_rs = mysql_fetch_array($order_rows)){
									?>
                                    <li>
                                        <div class="c-box">
                                            <div class="tx"><img src="<?=getClassName("kboy_user","user_face","uid=".$order_rs['uid'])?>" width="68" height="68" alt=""/></div>
                                            <div class="info">
                                                <div class="name"><a href="forum_active.php?uid=<?=$order_rs['uid']?>"><?=getUserNickName($order_rs['uid'])?></a></div>
                                                <div class="date">注册时间为：<?php echo $order_rs['user_regtime'];?></div>
                                            </div>
                                        </div>
                                    </li>
									<?php
									}
									?>
                                </ul>
                            </div>
                            <div class="hd-tips">
                                <div class="title"><h3>领队公告栏</h3></div>
								<?php
								 $one_sql  =" select * from  kboy_news   where `news_bigclass` = 140 "; 
								 $res_sql = mysql_query($one_sql);
								 $arr_sql = mysql_fetch_array($res_sql);
								?>
                                <div class="club_gg"><?php echo $arr_sql['news_content'];?></div>
                            </div>
                            <div class="hd-tips">
                                <div class="title"><h3>社区热门帖子</h3><a href="bbs.php">更多&gt;&gt;</a></div>
                                <ul class="note-list">
								
								<?php
								$news_sql = "select * from kboy_forum_travel order by travel_hit desc, id desc limit 10";
								$news_rows = mysql_query($news_sql);
								while($news_rs = mysql_fetch_array($news_rows)){
							  ?>
						     	<li><a href="forum_travelview.php?newsid=<?=$news_rs['id']?>"><?=$news_rs['travel_title']?></a></li>                               
							   <?php
								}
							   ?>
                                </ul>
                            </div>
                            <div class="hd-tips">
                                <div class="hd-ads">
                                    <a href="#">
                                        <img src="images/f_pic5_2.jpg" height="160" alt=""/>
                                        <p>呼伦贝尔5日游</p>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php //include_once('_include.active.bottombar.php');?>
    <!--foot begin-->
	<? include("_include.bottom.footbar.php") ?>
    <!--foot begin-->
    <!--左侧悬浮 begin-->
	<? include("_include.bottom.leftbar.php") ?>
    <!--左侧悬浮 end-->
    <!--右侧悬浮导航 begin-->
	<? include("_include.bottom.rightbar.php") ?>
    <!--右侧悬浮导航 end-->
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="js/activity.js"></script>
    <script type="text/javascript">
        jQuery(".hd-banner").slide({mainCell:".bd ul",effect:"leftLoop",autoPlay:true});
    </script>
    <script type="text/javascript">
        jQuery(".hd-photo-show").slide({
            titCell:".smallImg li",
            mainCell:".bigImg",
            effect:"fold",
            autoPlay:true,
            delayTime:200,
            startFun:function(i,p){
                if(i==0){
                    jQuery(".hd-photo-show .sPrev").click()
                } else if( i%4==0 ){
                    jQuery(".hd-photo-show .sNext").click()
                }
            }
        });
        jQuery(".hd-photo-show .smallScroll").slide({ mainCell:"ul",autoPage:true,effect:"top",vis:4,prevCell:".sPrev",nextCell:".sNext",trigger:"click",pnLoop:false });
    </script>
</body>
</html>

